//
//  iLoLTextField.m
//  ImageReplacer
//
//  Created by Tyler Powell on 5/1/12.
//  Copyright 2012 Georgia Institute of Technology. All rights reserved.
//

#import "iLoLTextField.h"


@implementation iLoLTextField
-(void) placeString
{
    if(![[NSFileManager defaultManager]fileExistsAtPath:@"options.txt"]){
        createFile(@"options.txt");
    }
	NSArray* options = getLines(@"options.txt");
	NSString* string = [options objectAtIndex:0];
	//NSString* string = @"Heres a string";
	//NSLog(string);
	[self setStringValue:string];
}
-(void) awakeFromNib
{
	[self placeString];
}
- (IBAction)changeTextFieldText:(id)sender
{
	[self placeString];
}
@end
